package com.gxar.quick.ar.server.base.model.works.vo.request;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.quick.ar.server.base.model.works.vo.BaseWorksContentVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/3 16:04
 */
@Data
@ApiModel("更新作品草稿请求模型")
public class WorksDraftUpdateRequest {

    @ApiModelProperty("封面")
    @JSONField(name = "cover_page")
    @JsonProperty("cover_page")
    private String coverPage;

    @ApiModelProperty("内容信息")
    @JSONField(name = "content")
    @JsonProperty("content")
    @NotBlank(message = "请上传作品内容")
    private String content;

    @ApiModelProperty("作品草稿名称")
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    @ApiModelProperty("识别图")
    @JSONField(name = "identify_pictures")
    @JsonProperty("identify_pictures")
    @NotBlank(message = "请上传识别图")
    private String identify;

    @ApiModelProperty("是否展示识别图，默认：false")
    @JSONField(name = "show_identify")
    @JsonProperty("show_identify")
    private Boolean showIdentify;

}
